<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>广药大文化站</title>
  <link href='https://fonts.googleapis.com/css?family=Amatic+SC' rel='stylesheet' type='text/css'>
</head>

<body>
  <style>
    html {
      box-sizing: border-box;
      background: #ffc600;
      font-family: 'helvetica neue';
      font-size: 20px;
      font-weight: 200;
    }

    body {
      margin: 0;
    }

    *,
    *:before,
    *:after {
      box-sizing: inherit;
    }

    .panels {
      min-height: 100vh;
      overflow: hidden;
      display: flex;
    }

    .panel {
      background: #ffffff;
      box-shadow: inset 0 0 0 1000px rgba(37, 36, 36, 0.077);
      color: rgb(255, 255, 255);
      text-align: center;
      align-items: center;
      transition:
        font-size 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11),
        flex 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11),
        background 0.2s;
      background-size: cover;
      background-position: center;
      flex: 1;
      justify-content: center;
      align-items: center;
      display: flex;
      flex-direction: column;
    }

    .panel1 {
      background-image: url(./images/28.jpg);
    }

    .panel2 {
      background-image: url(./images/2.jpg);
    }

    .panel3 {
      background-image: url(./images/3.jpg);
    }

    .panel4 {
      background-image: url(./images/4.jpg);
    }

    .panel5 {
      background-image: url(./images/12.jpg);
    }

    .panel6 {
      background-image: url(./images/19.jpg);
    }

    .panel>* {
      margin: 0;
      width: 100%;
      transition: transform 0.5s;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @font-face {
      font-family: AlimamaShuHeiTi;
      src: url(./AlimamaShuHeiTi/AlimamaShuHeiTi-Bold/AlimamaShuHeiTi-Bold.otf)format('otf'),
        url(./AlimamaShuHeiTi/AlimamaShuHeiTi-Bold/AlimamaShuHeiTi-Bold.ttf)format('truetype'),
        url(./AlimamaShuHeiTi/AlimamaShuHeiTi-Bold/AlimamaShuHeiTi-Bold.woff)format('woff'),
        url(./AlimamaShuHeiTi/AlimamaShuHeiTi-Bold/AlimamaShuHeiTi-Bold.woff2)format('woff');
    }

    .panel>*:first-child {
      transform: translateY(-100%);
    }

    .panel.open-active>* :first-child {
      transform: translateY(0);
    }

    .panel>*:last-child {
      transform: translateY(100%);
    }

    .panel.open-active>* :last-child {
      transform: translateY(0);
    }

    .panel a {
      text-transform: uppercase;
      font-family: 'AlimamaShuHeiTi', cursive;
      text-shadow: 0 0 20px rgba(0, 0, 0, 0.72), 0 0 32px rgba(0, 0, 0, 0.45);
      font-size: 2em;
    }

    .panel a:nth-child(2) {
      font-size: 6em;
    }

    .panel.open {
      flex: 5;
    }

    a {
      text-decoration: none;
      color: rgb(255, 255, 255);
    }
  </style>


  <div class="panels">
    <div class="panel panel1">
      <a href="index.html">Guang</a>
      <a href="index.html"><strong>广</strong></a>
      <a href="index.html">Home<br>Page</a>
    </div>
    <div class="panel panel2">
      <a href="Cultural activity.html">Yao</a>
      <a href="Cultural activity.html"><strong>药</strong></a>
      <a href="Cultural activity.html">Cultural <br> Activity</a>
    </div>
    <div class="panel panel3">
      <a href="distinction.html">Da</a>
      <a href="distinction.html"><strong>大</strong></a>
      <a href="distinction.html">People Of <br> Distinction</a>
    </div>
    <div class="panel panel4">
      <a href="honor.html">Wen</a>
      <a href="honor.html"><strong>文</strong></a>
      <a href="honor.html">School <br> Honor</a>
    </div>
    <div class="panel panel5">
      <a href="beauty.html">Hua</a>
      <a href="beauty.html"><strong>化</strong></a>
      <a href="beauty.html">Campus <br> Beauty</a>
    </div>
    <div class="panel panel6">
      <a href="index.html">Zhan</a>
      <a href="index.html"><strong>站</strong></a>
      <a href="index.html">18天<br>创造奇迹</a>
    </div>
  </div>

  <script>
    const panels = document.querySelectorAll('.panel');

    function toggleOpen() {
      this.classList.toggle('open');
    }

    function toggleActive(e) {
      if (e.propertyName.includes('flex')) {
        this.classList.toggle('open-active');
      }
    }

    panels.forEach(panel => panel.addEventListener('click', toggleOpen));
    panels.forEach(panel => panel.addEventListener('transitionend', toggleActive));

  </script>



</body>

</html>